package com.ayou.eggguard.farm.controller;

import com.ayou.common.utils.PageBean;
import com.ayou.common.utils.Result;
import com.ayou.eggguard.farm.pojo.FeedRecord;
import com.ayou.eggguard.farm.service.FeedRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/feedRecord")
public class FeedRecordController {

    @Autowired
    private FeedRecordService feedRecordService;

    @GetMapping("/getFeedRecordList")
    public Result<PageBean<FeedRecord>> getFeedRecordList(Integer pageSize,
                                                          Integer pageNum,
                                                          String coopNumber){
        PageBean<FeedRecord> pb=feedRecordService.getFeedRecordList(pageNum,pageSize,coopNumber);
        return Result.success(pb);
    }

}
